package com.example.mybatisplusdemo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplusdemo.model.domain.Merchant;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lxp
 * @since 2025-07-04
 */
public interface IMerchantService extends IService<Merchant> {

    Merchant loginByUsername(Merchant merchant);

    Merchant loginByPhone(Merchant merchant);

    Merchant loginByEmail(Merchant merchant);

    Merchant loginByWechat(Merchant merchant);

    boolean registerByPhone(Merchant merchant);

    boolean registerByEmail(Merchant merchant);

    boolean registerByWechat(Merchant merchant);

    boolean freezeById(Long id);

    boolean unFreezeById(Long id);

    Page<Merchant> listMerchants(Page<Merchant> page, Merchant merchant);


    boolean merchantRegister(Merchant registerData);
}
